import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import PiniaPersistedState from 'pinia-plugin-persistedstate'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import router from '@/router/index.js'
//中文语言包
import locale from 'element-plus/dist/locale/zh-cn.js'

const app=createApp(App)
const pinia = createPinia()

pinia.use(PiniaPersistedState)

// createApp(App).mount('#app')
app.use(pinia)
app.use(ElementPlus,{locale})
// 安装路由器
app.use(router);
app.mount('#app')
//中文显示
